﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Match.aspx.cs" Inherits="SoccerEvaluator.WebSite.Match" %>


<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" runat="server">
    <link href="css/Match.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="mainContent">


        <div class="MatchMenu">
            <a href="GroupList.aspx">Inicio
            </a><a href="MatchUsers.aspx?Id=<%=_projectID %>">
                <%=Resources.Resource.Users %>
            </a>
            <a href="MatchList.aspx?ID=<%=_groupID %>">Volver                    
            </a>
            <asp:HyperLink ID="lnkFillForm" runat="server" NavigateUrl="~/MatchUpload.aspx" CssClass="fillForm">Llenar Marcadores!</asp:HyperLink>
        </div>

        <img runat="server" id="ImageLogo" src="~/Images/Mundialsub20.jpg" height="150"
            width="150" class="ImageLogo" />
        <div class="ScoreSettings">
            <%=Resources.Resource.ExactScore %>:
                    <asp:Label ID="lblExactScore" runat="server"></asp:Label>
            <br />
            <%=Resources.Resource.CatchScore %>:
                    <asp:Label ID="lblCatchScore" runat="server"></asp:Label>
            <br />
            <%=Resources.Resource.Users %>
            <asp:Label ID="lblTotalUsers" runat="server"></asp:Label>
        </div>

        
        <div class="divScores">
            <h2>
                <asp:Label runat="server" ID="txtMatchName"></asp:Label>
            </h2>
            <asp:Repeater runat="server" ID="lstScores">
                <HeaderTemplate>
                    <div class="container">
                        <div class="row">
                            <div class="cell">
                                #
                            </div>
                            <div class="cell">
                                <%=Resources.Resource.Asserts %>
                            </div>
                            <div class="cell">
                                <%=Resources.Resource.Date %>
                            </div>
                            <div class="cell">
                                <%=Resources.Resource.Location %>
                            </div>
                            <div class="cell"></div>
                            <div class="cell">
                                <%=Resources.Resource.Team %>
                            </div>
                            <div class="cell">
                                <%=Resources.Resource.Goals %>
                            </div>
                            <div class="cell"></div>
                            <div class="cell">
                                <%=Resources.Resource.Team %>
                            </div>
                            <div class="cell">
                                <%=Resources.Resource.Goals %>
                            </div>
                        </div>
                </HeaderTemplate>
                <FooterTemplate>
                    </div>
                </FooterTemplate>
                <ItemTemplate>
                    <div class="row">
                        <div class="cell">
                            <%# Container.ItemIndex + 1 %>
                        </div>
                        <div class="cell">
                            <a href='MatchStatistics.aspx?Index=<%#Eval("Index") %>'>
                                <img src="Images/Stadium.png" />
                            </a>
                        </div>
                        <div class="cell">
                            <%#Eval("Date","{0:f}") %>
                        </div>
                        <div class="cell">
                            <%#Eval("Location") %>
                        </div>
                        <div class="cell">
                            <img src='Teams/<%#SoccerEvaluator.WebSite.App_Code.Countries.GetImageNameCode(Eval("Local").ToString()) %>' border="1" />
                        </div>
                        <div class="cell">
                            <span class="country">
                                <%#SoccerEvaluator.WebSite.App_Code.Countries.GetName(Eval("Local").ToString()) %>
                            </span>
                        </div>
                        <div class="cell">
                            <span class="goal">
                                <%#Eval("LocalGoals") %>
                            </span>
                        </div>
                        <div class="cell">

                            <img src='Teams/<%#SoccerEvaluator.WebSite.App_Code.Countries.GetImageNameCode(Eval("Visitor").ToString()) %>' border="1" />

                        </div>
                        <div class="cell">
                            <span class="country">
                                <%#SoccerEvaluator.WebSite.App_Code.Countries.GetName(Eval("Visitor").ToString()) %>
                            </span>
                        </div>
                        <div class="cell">
                            <span class="goal">
                                <%#Eval("VisitorGoals") %>
                            </span>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</asp:Content>
